/*
 * @Copyright: Copyright (c) 2030 吴周海
 * @Author: wzh200x@126.com
 * @Date: 2025-10-13 15:05:40
 * @LastEditors: wzh200x@126.com
 * @LastEditTime: 2025-10-27 14:29:56
 * @FilePath: \gogamewebserver\goGameWebServer\api\center\v1\center.go
 * @Description: 文件功能描述
 */
package v1

import "github.com/gogf/gf/v2/util/gmeta"

type QueryAccountReq struct {
	gmeta.Meta  `path:"/center/query" method:"post" tags:"账号服务器信息查询"`
	AccountName string `p:"accountName" v:"required"`
}

type QueryAccountRes struct {
	gmeta.Meta `mime:"application/json" example:"{code:0, message:'', data:[sid, sid]"`
	Servers    []int `json:"servers"`
}

type UpdateAccountReq struct {
	gmeta.Meta  `path:"/center/update" method:"post" tags:"更新账号服务器信息"`
	AccountName string `p:"accountName" v:"required"`
	ServerID    int    `p:"sid" v:"required"`
}

type UpdateAccountRes struct {
	gmeta.Meta `mime:"application/json" example:"{code:0, message:'', data:[sid, sid]}"`
	Servers    []int `json:"servers"`
}
